package cn.kgc.mapper;

import cn.kgc.pojo.Hmold;
import cn.kgc.pojo.HmoldExample;
import org.apache.ibatis.annotations.Param;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;

import java.io.IOException;
import java.util.List;

public interface HmoldMapper {
    int countByExample(HmoldExample example);

    int deleteByExample(HmoldExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Hmold record);

    int insertSelective(Hmold record);

    List<Hmold> selectByExample(HmoldExample example);

    Hmold selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Hmold record, @Param("example") HmoldExample example);

    int updateByExample(@Param("record") Hmold record, @Param("example") HmoldExample example);

    int updateByPrimaryKeySelective(Hmold record);

    int updateByPrimaryKey(Hmold record);

    //增加 excel导入
    public int importExcel(List<Hmold> excelFile
                          /* @RequestParam("hmold") Hmold hmold*/) throws IOException, InvalidFormatException;
}